/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pojo;

/**
 *
 * @author Kanet
 */
public class TaiKhoanPoJo 
{
    
    // <editor-fold defaultstate="collapsed" desc="1. Thuộc tính">
    private int idTaiKhoan;
    private String tenDangNhap;
    private String matKhau;
    private String eMail;
    private PhanHePoJo phanHe;
// </editor-fold>
    
    // <editor-fold defaultstate="collapsed" desc="3. Get/Set">
    public int getIdTaiKhoan()
    {
        return this.idTaiKhoan;
    }
    public void setIdTaiKhoan(int id)
    {
        this.idTaiKhoan= id;
    }
    public String getTenDangNhap()
    {
        return this.tenDangNhap;
    }
    public void setTenDangNhap(String tenDN)
    {
        this.tenDangNhap=tenDN;
    }
    public String getMatKhau()
    {
        return this.matKhau;
    }
    public void setMatKhau(String matkhau)
    {
        this.matKhau= matkhau;
    }
    public String getEmail()
    {
        return this.eMail;
    }
    public void setEmail(String email)
    {
        this.eMail = email;
    }
    public PhanHePoJo getPhanhe()
    {
        return this.phanHe;
    }
    public void setPhanhe(PhanHePoJo ph)
    {
        this.phanHe = ph;
    }
// </editor-fold>
    public TaiKhoanPoJo()
    {
        this.idTaiKhoan =0;
        this.tenDangNhap ="";
        this.matKhau= "";
        this.eMail="";
        this.phanHe = new PhanHePoJo();
    }
    
    public TaiKhoanPoJo(String name, String pwd, String email, int idph)
    {
        this.idTaiKhoan =0;
        this.tenDangNhap = name;
        this.matKhau= pwd;
        this.eMail = email;
        this.phanHe = new PhanHePoJo();
        this.phanHe.setIdPhanhe(idph);
    }
}
